translate = {
    'LANG': ['语言', 'Language'],
    'CONFIG': ['设置', 'Configuration'],
    'FILE': ['文件', 'File'],
    'FUNCTION': ['功能', 'Function'],
    'SAVE_CONFIG': ['保存配置', 'Save Config'],
    'LOAD_CONFIG': ['加载配置', 'Load Config'],
    'SAVE_DATA': ['保存本次数据', 'Save Curr. Data'],
    'HELP': ['帮助', 'Help'],
    'START': ['开始', 'Start'],
    'RESET': ['复位', 'Reset'],
    'RECONNECT_DEVICE': ['重连设备', 'Reconnect Device'],
    'SET_PARAM': ['参数', 'Set Params.'],
    'STOP': ['停止', 'Stop'],
    'ABOUT': ['关于', 'About'],
    'SHOW_ALL': ['Draw all points', 'Draw all points'],
    'RESTART_UDP': ['Restart UDP', 'Restart UDP'],
    'SERIAL_CONFIG': ['串口设置', 'Serial Config.'],
    'INI_FREQ': ['起始频率(0-6000MHz)', 'Initial Freq.(Mhz)'],
    'END_FREQ': ['截止频率(0-600MHz)', 'End Freq.(Mhz)'],
    'FREQ_PTS': ['频点数(2-1000)', 'Freq. Points'],
    'FILTER_PIPE': ['滤波器通道', 'Wave filter pipe'],
    'SINGLE_FREQ_TIMER': ['单频点持续时间(21us-1s)', 'Single Freq. Timer'],
    'IMPULSE_TIMER': ['脉冲时间(0-1Mus)', 'Impulse Timer'],
    'FREQ_DIFF': ['频差(0-600MHz)', 'Freq. Diff.'],
    'SINGLE_FREQ_INTERVAL': ['单频点间隔时间(1.12us-1s)', 'Single Freq. Interval'],
    'UDP_CONFIG': ['UDP配置', 'UDP Config.'],
    'IP_ADDR': ['IP 地址', 'IP Address'],
    'PORT': ['端口', 'Port'],
    'TIMEOUT': ['超时时间', 'Timeout'],
    'HOST_ADDR': ['本机IP地址', 'IP Address'],
    'HOST_PORT': ['本机端口', 'Port'],
    'COUNTER': ['计数', 'Count'],
}

combox = {
    'LANG': ['中文', 'English'],
    'ZH': 0,
    'EN': 1,
    'FILTER_PIPE': ['1.25MHz+50KHz', '1.25MHz+100KHz', '1.25MHz+150KHz', '1.25MHz+200KHz',
                    '1.25MHz+250KHz']
}
